<html>
 <head>
  <title>Hello, Ajax world!</title>
  <script type="text/javascript"
    src="http://o.aolcdn.com/dojo/1.0.0/dojo/dojo.xd.js"></script> <!--?-->
  <script type="text/javascript">

		function myTimestamp(){
			tstmp = new Date();
			return tstmp.getTime();
		}
		
    function hello() { // ?
      dojo.xhrGet( { // ?
        // The following URL must match that used to test the server.
        url: "/cgi-bin/webif/remote_file.sh?time="+myTimestamp(), 
        handleAs: "text",

        timeout: 6000, // Time in milliseconds

        // The LOAD function will be called on a successful response.
        load: function(response, ioArgs) { // ?
//					var temp = new Array();
//					temp = response.split('\n');
//					for (x in temp)
//					{
//						document.write(temp[x] + "<br />");
//					}
						document.write(response);

//          dojo.byId("cargo").innerHTML = response; // ?
          return response; // ?
        },

        // The ERROR function will be called in an error case.
        error: function(response, ioArgs) { // ?
          console.error("HTTP status code: ", ioArgs.xhr.status); // ?
          return response; // ?
          }
        });
      }
  </script>
  <script type="text/javascript">
    dojo.addOnLoad(hello); // ?
  </script>
 </head>
 <body>
   <div id="cargo" style="font-size: big"></div> <!--?-->
 </body>
</html>
